import 'package:json_annotation/json_annotation.dart';

part 'dept.g.dart';

@JsonSerializable()
class Dept {
  Dept();

  late String id;
  late String parentId;
  List<Dept>? children;
  bool? hasChildren;
  late String title;
  late String key;
  late String value;
  String? type;
  
  factory Dept.fromJson(Map<String,dynamic> json) => _$DeptFromJson(json);
  Map<String, dynamic> toJson() => _$DeptToJson(this);
}
